Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement fastboot continue when omitting boot img from cdba command line #66

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

0xB0D
Copy link
Contributor

@0xB0D 0xB0D commented Jan 1, 2024

One thing I find handy is being able to fastboot continue.

My typical workflow is compile/edit whatever then boot the default image on the target board, populate modules on either the rootfs or on a sd card, then reboot to fastboot again.

On the subsequent reboot fastboot into the rootfs with the kernel image I've compiled.

I find this a handy way to always have a default recovery image on the board I can boot.

This series makes the boot.img non-mandatory when invoking cdba.
In this case cdba will issue a new MSG_FASTBOOT_CONTINUE command to cdba-server.

Unsurprisingly MSG_FASTBOOT_CONTINUE => "fastboot continue" on the cdba-server side.

This still works ie "fastboot download; fastboot boot"
cdba -b db410c -h benchtop-cdba ./qlt-kernel/build/square_5.x-tracking/boot_t2a.img

If you drop the boot image though the flow is "fastboot continue"
cdba -b db410c -h benchtop-cdba

My test system
devices:

  • board: db410c
    qcomlt_debug_board: /dev/serial/by-id/usb-Linaro_DebugBoard_68cb7c6b75a4451502020223236460ff-if00
    console: /dev/serial/by-id/usb-Linaro_DebugBoard_68cb7c6b75a4451502020223236460ff-if02
    name: "db410c"
    fastboot: 1dcd2e70
    fastboot_set_active: true
    fastboot_key_timeout: 5

cdba.c Outdated Show resolved Hide resolved
@lumag
Copy link
Collaborator

lumag commented Jan 1, 2024

@0xB0D just for the reference, meta-qcom's initramfs-rootfs-image includes hook to copy modules to rootfs. You might want to use it instead.

@lumag
Copy link
Collaborator

lumag commented Jan 10, 2024

BTW, does this work with -R, fastboot repeat?

@0xB0D
Copy link
Contributor Author

0xB0D commented Jan 15, 2024

@lumag I tested it as either/or - either continue or the existing flow - however once you've continued once, you can subsequently repeat if the flag is set

8bf824b#diff-e2595c859cae197be14afcd161104e8383205cf6b64952b13114f0e6126f498fR552

@lumag
Copy link
Collaborator

lumag commented Jan 15, 2024

@0xB0D Ack.

@lumag
Copy link
Collaborator

lumag commented Jan 15, 2024

@0xB0D "The base branch requires all commits to be signed." :-(

@0xB0D
Copy link
Contributor Author

0xB0D commented Jan 15, 2024

@lumag sure I'll repost

0xB0D added 2 commits January 17, 2024 02:08
Add cdba-server side support for "fastboot continue" which allows
fastboot to continue its default boot process.

I find it useful to setup my boards with an additional SD card which I
frequently use the default image on eMMC to chroot to and populate
modules, rebooting into fastboot and subsequently booting via fastboot
a rootfs on the SD card.

Signed-off-by: Bryan O'Donoghue <[email protected]>
Add the ability to omit the image from the cdba call. In this case default
to "fastboot continue" on the cdba-server side.

Regular booting continues to work like this:
cdba -b db410c -h benchtop-cdba ./qlt-kernel/build/square_5.x-tracking/boot_t2a.img

New option to boot the default image a proxy for "fastboot continue"
cdba -b db410c -h benchtop-cdba

Signed-off-by: Bryan O'Donoghue <[email protected]>
@0xB0D
Copy link
Contributor Author

0xB0D commented Jan 17, 2024

@lumag signed

@konradybcio konradybcio merged commit d678216 into linux-msm:master Jan 17, 2024
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants